package OOday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student Jack = new Student("Jack", 15, "长春", "二", "001");
        Jack.eat();
        Jack.sleep();
        Jack.sayHi();
        Jack.study();

        Teacher Mike = new Teacher("Mike", 30, "北京", 1000.0);
        Mike.eat();
        Mike.sleep();
        Mike.sayHi();
        Mike.teach();

        Doctor Tony = new Doctor("Tony", 20, "沈阳", "副主任");
        Tony.eat();
        Tony.sleep();
        Tony.sayHi();
        Tony.cut();

        Person Nigger = new Person("Nigger", 20, "洛杉矶");
        Nigger.eat();
        Nigger.sleep();
        Nigger.sayHi();
        //Nigger.study();错误
    }
}
